﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Phatent.Model.Pages;
using Phatent.Command.Pages;
namespace Phatent.Logic.Pages
{
    public class CaseLogic
    {
        public static CaseCollection Gets(CaseQuery sea)
        {
            return CaseCommand.Gets(sea);
        }

        public static CaseModel GetTopCaseByFriendUrl(string url)
        {
            return CaseCommand.GetTopCaseByFriendUrl(url);
        }

        public static CaseModel GetCaseByFriendUrl(string url)
        {
            return CaseCommand.GetCaseByFriendUrl(url);
        }

        public static CaseModel GetCaseByParent(CaseModel pcase)
        {
            return CaseCommand.GetCaseByParent(pcase);
        }

        public static CaseModel GetCaseByID(int cid)
        {
            return CaseCommand.GetCaseByID(cid);
        }
    }
}
